/*
 * QueryRepresentation.h
 *
 *  Created on: Oct 22, 2011
 *      Author: gassa
 */

#ifndef QUERYREPRESENTATION_H_
#define QUERYREPRESENTATION_H_

#include "../include/includes.h"
#include "../RetrievalProcessor/IndexLoader.h"

using namespace std;


class QueryRepresentation {
private:

	vector<string> authorVector;
	vector<string> categoryVector;
	map<string, string> queryMapper;

public:
	int resultsReq;
	string querytring;
	map<string, int> termMap;
	QueryRepresentation();
	virtual ~QueryRepresentation();
    vector<string> getAuthorVector() const;
    vector<string> getCategoryVector() const;
    void setAuthorVector(vector<string> authorVector);
    void setCategoryVector(vector<string> categoryVector);

    void setQuerytring(string querytring);

    map<string,string> getQueryMapper() const;
    void additermToMapper(string key, string value);
    void addTermToContainer(string term);
    string getQuerytring() const;
    void setQueryMapper(map<string,string> queryMapper);
    void setTermMap(map<string,int> termMap);
    map<string,int> getTermMap();
    void pringQueryTerm(){
    	cout << "=====" << querytring << "============" << endl;
    }
};
#endif /* QUERYREPRESENTATION_H_ */
